package cn.xiaopengstack.infrastructure.persistent.dao;

import cn.xiaopengstack.infrastructure.persistent.po.GroupBuyDiscount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author jiangyangang
* @description 针对表【group_buy_discount】的数据库操作Mapper
* @createDate 2025-10-10 17:14:11
* @Entity cn.xiaopengstack.infrastructure.persistent.po.GroupBuyDiscount
*/
@Mapper
public interface IGroupBuyDiscountDao {


    int insertSelective(GroupBuyDiscount record);

    GroupBuyDiscount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GroupBuyDiscount record);

    /**
     * 查询活动折扣详情
     * @param discountId
     * @return
     */
    GroupBuyDiscount queryDiscountByDiscountId(@Param("discountId") String discountId);


}
